<template>
    <div id="notice">
        <h2 class="title">{{ title }}</h2>
        <div class="message">{{ message }}</div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            title: "",
            message: "",
            duration: 4500,
        };
    },
};
</script>

<style scoped lang="less">
#notice {
    display: flex;
    flex-direction: column;
    width: 330px;
    padding: 14px 26px 14px 13px;
    border-radius: 8px;
    box-sizing: border-box;
    border: 1px solid #ebeef5;
    position: fixed;
    top: 16px;
    right: 16px;
    background-color: #fff;
    box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
    transition: opacity 0.3s, transform 0.3s, left 0.3s, right 0.3s, top 0.4s,
        bottom 0.3s;
    overflow: hidden;

    .title {
        display: block;
        font-size: 1em;
        margin-block-start: 0.83em;
        margin-block-end: 0.83em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        font-weight: bold;
    }

    .message {
        font-size: 14px;
        line-height: 21px;
        margin: 6px 0 0;
        color: #606266;
        text-align: justify;
    }
}
</style>